import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";
const Login = ()=>import('../views/ayq/login.vue')
const Home = ()=>import('../views/main/home.vue')
const My = ()=>import('../views/main/my.vue')
const Volunteer = ()=>import('../views/main/volunteer.vue')
const Welfare = ()=>import('../views/main/welfare.vue')
const Shop = ()=>import('../views/main/shop.vue')
const Zong = ()=>import('../views/main/zong.vue')
const routes: Array<RouteRecordRaw> = [
    {path:'/',name:'login',component:Login},
    {path:'/volunteer', name:'volunteer',component:Volunteer},
    {path:'/welfare', name:'welfare',component:Welfare},
    {path:'/shop', name:'shop',component:Shop},
    {path:'/zong',name:'zong',component:Zong,
     children:[
        {path:'/home',name:'home',component:Home,},
        {path:'/my',name:'my',component:My}
     ]
},
]
const router=createRouter({
    history:createWebHistory(),
    routes
})
export default router